#!/bin/bash -x



###################启动ztron#####################
systemctl stop nlims_auto

cur_ip=$(ifconfig eth0 | grep inet | awk '{ print $2}' | awk 'NR==1')

cd /home/ztron/app_software/zlims-pro/nlims

jar -xvf MGI-ZLIMS-PRO.jar BOOT-INF/classes/static/js/ztron/login.js

sed -i "s/119.91.255.117/$cur_ip/g" BOOT-INF/classes/static/js/ztron/login.js
jar -uvf MGI-ZLIMS-PRO.jar BOOT-INF/classes/static/js/ztron/login.js

systemctl start nlims_auto

###################启动rdr#####################


